package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.StrategyCatalog;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.StrategyCatalogQueryObject;
import cn.wolfcode.trip.base.query.StrategyQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author by mycp
 * @Classname IStrategyService
 * @Description TODO
 * @Date 2018/11/7 22:03
 */
public interface IStrategyCatalogService {

    /**
     * 分页查询攻略
     * @param qo
     * @return
     */
    PageInfo query(StrategyCatalogQueryObject qo);

    void saveOrUpdate(StrategyCatalog strategyCatalog);

    /**
     * 查询指定攻略中不被禁用的所有攻略类别
     * @param strategyId
     * @return
     */
    List<StrategyCatalog> selectEnable(Long strategyId);

}
